package com.zijin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijin.entity.user.UserRole;
import com.zijin.vo.user.UserRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户和角色关联表 Mapper 接口
 * </p>
 *
 * @author JWei Xu
 * @since 2025-02-01
 */

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    UserRoleVo getUserRole(Long id);

    Page<UserRoleVo> getPage(Page page, @Param("search")String search);
}
